package com.cqsw.test;

import com.cqsw.mapper.UserMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

/**
 * @Classname Role
 * @Description TODO
 * @Date 2022/6/13 19:11
 * @Created by Smith.Liu
 */
@SpringBootTest
public class Role {
    private final UserMapper userMapper;

    @Autowired
    public Role(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Test
    void testGetRoleForUser() {
        List<com.cqsw.entity.Role> roleForUser = userMapper.getRoleForUser(1);
        System.out.println("roleForUser = " + roleForUser);
    }
}
